package com.atguigu.gmall.activity.util;

/***
 * 秒杀服务工具类
 */
public class SeckillUtil {

    /**
     * 构建商品剩余数量长度的数组，里面的数据是商品id
     * @param stockCount
     * @return
     */
    public static String[] getseckillGoodsIdArray(Integer stockCount, String seckillGoodsId) {
        String[] ids = new String[stockCount];

        //循环赋值
        for (Integer i = 0; i < stockCount; i++) {
            ids[i] = seckillGoodsId;
        }

        //返回结果
        return ids;
    }
}
